package io.le.starter.lock.config;

import io.le.starter.lock.locker.manager.LockFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * createTime：2025-04-07 15:57
 * description：锁属性
 */
@Component
@ConfigurationProperties("lock")
public class LockProperties {

    public String defaultLockType = LockFactory.REDIS;

    public String defaultZKUrl = "127.0.0.1:2181";

    public String defaultEtcdUrl = "http://127.0.0.1:2379";

    public String getDefaultLockType() {
        return defaultLockType;
    }

    public void setDefaultLockType(String defaultLockType) {
        this.defaultLockType = defaultLockType;
    }

    public String getDefaultZKUrl() {
        return defaultZKUrl;
    }

    public void setDefaultZKUrl(String defaultZKUrl) {
        this.defaultZKUrl = defaultZKUrl;
    }

    public String getDefaultEtcdUrl() {
        return defaultEtcdUrl;
    }

    public void setDefaultEtcdUrl(String defaultEtcdUrl) {
        this.defaultEtcdUrl = defaultEtcdUrl;
    }
}
